
using System.Data.Entity.ModelConfiguration;

namespace OBUCare.Core.Models.Mapping
{
    public class PARTS_SPECS_DETAILMap : EntityTypeConfiguration<PARTS_SPECS_DETAIL>
    {
        public PARTS_SPECS_DETAILMap()
        {
            // Primary Key
            this.HasKey(t => t.ID);

            // Properties
            this.Property(t => t.END_NO)
                .IsRequired()
                .HasMaxLength(16);

            // Table & Column Mappings
            this.ToTable("PARTS_SPECS_DETAIL");
            this.Property(t => t.ID).HasColumnName("ID");
            this.Property(t => t.CONTRACT_DETAIL_ID).HasColumnName("CONTRACT_DETAIL_ID");
            this.Property(t => t.START_NO).HasColumnName("START_NO");
            this.Property(t => t.END_NO).HasColumnName("END_NO");
            this.Property(t => t.PARTS_SPEC_ID).HasColumnName("PARTS_SPEC_ID");
            this.Property(t => t.STATUS).HasColumnName("STATUS");
        }
    }
}
